package com.kac.controller;


import com.codingapi.txlcn.commons.annotation.LcnTransaction;
import com.kac.feign.ProductFeignClient;
import com.kac.feign.UserFeignClient;
import com.kac.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {


    @Autowired
    private UserService userService;

    @GetMapping("/save")
    public String save(){
        try{

            return userService.save();
        }catch (Exception e){
            return  e.getMessage();
        }

    }

    @GetMapping("/test")
    public String test(){
        try{

            return userService.test();
        }catch (Exception e){
            return  e.getMessage();
        }

    }




}
